<?php

abstract Class Custom{
	var $config = null;

	function __construct($file_path = 'config.json'){
		try{
			$cnt = file_get_contents(dirname(BASE_PATH) . '/custom/' . str_replace("Controller",'',get_class($this)) . '/' . $file_path);
			$this->config = json_decode($cnt,true);
		}
		catch(Exception $e){
			exit;
		}
	}


	function display($type,$condition){}

	function get_form($type){
		return $this->config['exten'][$type];
	}
}

?>